<?php

namespace app\admin\model;


class Orderentry extends Base
{
    // 表名
    protected $name = 'pur_orderentry';

    //产品
    public function material()
    {
        return $this->belongsTo("Material", 'fk_bdl_bd_material');
    }

    //库存
    public function inventory()
    {
        return $this->belongsTo("Inventory", 'fk_bdl_inventoryid')->with(['inventoryentryvalue','surface','texture']);
    }



}
